package com.hangzhou.xyj.model;

import android.util.SparseArray;

import com.google.gson.annotations.SerializedName;

/**
 * Created by yaohuix on 2016/2/25  15:41
 * <p/>
 * 说明：课本Model
 */
public class BookModel {
    //level 转具体的中文
    public static final SparseArray<String> LEVEL = new SparseArray<String>() {
        {
            put(1, "一年级");
            put(2, "二年级");
            put(3, "三年级");
            put(4, "四年级");
            put(5, "五年级");
            put(6, "六年级");
        }
    };
    //type 转具体的中文
    public static final SparseArray<String> TYPE = new SparseArray<String>() {
        {
            put(1, "小学");
            put(2, "初中");
            put(3, "高中");
            put(4, "大学");
        }
    };
    private String image;//课本对应的icon
    private String url;//课本跳转的H5页面
    private int level;//年级
    private int type;//高中，初中等
    private String name;//课本的名称
    private int id;//课本唯一标识
    @SerializedName("book_from")
    private String bookName;//课本名称

    @Override
    public String toString() {
        return "BookModel={image=" + image + ",url=" + url + ",level=" + level + ",type=" + type
                + ",name=" + name + ",id=" + id + "}";
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}

